import Sidebar from './Sidebar/Sidebar.vue'
import ALogin from './login/login.vue'
import Main from './Main/Main.vue'
export default {
  name: "Admin",
  components: {
    Sidebar,
    ALogin,
    Main,
  },
  data() {
    return {
      loadState: false,
      isMain: 'webinfo',
    }
  },
  methods: {
    loadSuccess() {
      this.loadState = true;
    },
    changeMain(main) {
      console.log(main);
      // if(main === 0)
      //   return;
      console.log('is ok');
      this.isMain = main;
    }
  },
  created() {
    if(localStorage.getItem("MW__AIDMd5")) {
      this.loadState = true;
    } else {
      this.loadState = false;
      this.$router.push('/wyy');
    }
  },
}
